package com.iknow.image;

import android.graphics.Bitmap;
import java.util.HashMap;

public class MemoryImageCache
  implements ImageCache
{
  private HashMap<String, Bitmap> mCache = new HashMap();

  // ERROR //
  public Bitmap get(String paramString)
  {
    // Byte code:
    //   0: aload_0
    //   1: monitorenter
    //   2: aload_0
    //   3: getfield 18	com/iknow/image/MemoryImageCache:mCache	Ljava/util/HashMap;
    //   6: aload_1
    //   7: invokevirtual 23	java/util/HashMap:get	(Ljava/lang/Object;)Ljava/lang/Object;
    //   10: checkcast 25	android/graphics/Bitmap
    //   13: astore_3
    //   14: aload_3
    //   15: ifnonnull +13 -> 28
    //   18: getstatic 29	com/iknow/image/MemoryImageCache:mDefaultBitmap	Landroid/graphics/Bitmap;
    //   21: astore 4
    //   23: aload_0
    //   24: monitorexit
    //   25: goto +16 -> 41
    //   28: aload_0
    //   29: monitorexit
    //   30: aload_3
    //   31: astore 4
    //   33: goto +8 -> 41
    //   36: astore_2
    //   37: aload_0
    //   38: monitorexit
    //   39: aload_2
    //   40: athrow
    //   41: aload 4
    //   43: areturn
    //
    // Exception table:
    //   from	to	target	type
    //   2	39	36	finally
  }

  public void put(String paramString, Bitmap paramBitmap)
  {
    monitorenter;
    try
    {
      this.mCache.put(paramString, paramBitmap);
      monitorexit;
      return;
    }
    finally
    {
      localObject = finally;
      monitorexit;
      throw localObject;
    }
  }

  public void putAll(MemoryImageCache paramMemoryImageCache)
  {
    monitorenter;
    try
    {
      this.mCache.putAll(paramMemoryImageCache.mCache);
      monitorexit;
      return;
    }
    finally
    {
      localObject = finally;
      monitorexit;
      throw localObject;
    }
  }
}